package com.lin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 长链->短链表
 * </p>
 *
 * @author baomidou
 * @since 2024-07-06
 */
@Getter
@Setter
public class Chain implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 长链
     */
    private String longChain;

    /**
     * 短链
     */
    private String shortChain;

    public Chain(String longChain, String shortChain) {
        this.longChain = longChain;
        this.shortChain = shortChain;
    }

    public Chain(){

    }
}
